package cn.yangke.org.mapper;

import cn.yangke.basic.mapper.BaseMapper;
import cn.yangke.org.domain.Department;
import cn.yangke.org.domain.Employee;
import cn.yangke.org.query.EmployeeQuery;

import java.util.List;

/**
 * @Author YangKe
 * @Date 2022/6/1 14:47
 */
public interface EmployeeMapper extends BaseMapper<Employee> {

    /**
     * 根据用户名查询
     * @param username
     * @return
     */
    Employee loadByUsername(String username);

    /**
     * 基于店铺id查询
     * @param shopId
     * @return
     */
    Employee loadByShopId(Long shopId);
}
